/*
 * Copyright @ 2024 weili23
 * com.sky.service 11:12
 * All right reserved.
 */

package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.entity.Orders;
import com.sky.vo.OrderReportVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @desc:
 * @author: weili23
 * @createTime: 2024/11/11 11:12
 * @version: v1.0
 */
public interface OrderService extends IService<Orders> {

    OrderSubmitVO orderSubmit(OrdersSubmitDTO ordersSubmitDTO);

    List<Orders> processOrderTimeOutTask(Integer state, LocalDateTime time);

    /**
     * @desc: 查询统计额
     * @author: weili23
     * @Date: 2024/11/14 11:06
     * @version: 1.0
     */
    TurnoverReportVO getTurnOverStatistics(LocalDate begin, LocalDate end);


    /**
     * @desc: 订单统计
     * @author: weili23
     * @Date: 2024/11/21 15:01
     * @version: 1.0
     */
    OrderReportVO getOrdersStatistics(LocalDate begin, LocalDate end);

    /**
     * @desc: 获取销量排名top10
     * @author: weili23
     * @Date: 2024/11/21 16:26
     * @version: 1.0
     */
    SalesTop10ReportVO getTop10(LocalDate begin, LocalDate end);
}
